package com.ruoyi.event.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 年度考察业务对象 event_ndkc
 *
 * @author strongme
 * @date 2023-02-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EventNdkcBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {EditGroup.class})
    private Long ndkcId;

    /**
     * 被考察人员id
     */
    @NotNull(message = "被考察人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 考察开始时间
     */
    @NotNull(message = "考察开始时间不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date kcks;

    /**
     * 考察结束时间
     */
    @NotNull(message = "考察结束时间不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date kcjs;

    /**
     * 考察单位
     */
    @NotBlank(message = "考察单位不能为空", groups = {AddGroup.class, EditGroup.class})
    private String kcdw;

    /**
     * 考察日期
     */
    @NotNull(message = "考察日期不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date kcrq;

    /**
     * 本人签名
     */
    @NotBlank(message = "本人签名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String brqm;

    /**
     * 本人陈述
     */
    @NotBlank(message = "本人陈述不能为空", groups = {AddGroup.class, EditGroup.class})
    private String brcs;

    /**
     * 主要联系人签名
     */
    private String zylxrqm;

    /**
     * 主要联系人陈述
     */
    private String zylxrcs;

    /**
     * 工作小组考察情况
     */
    @NotBlank(message = "工作小组考察情况不能为空", groups = {AddGroup.class, EditGroup.class})
    private String gzxzkcqk;

    /**
     * 工作小组考察情况日期
     */
    @NotNull(message = "工作小组考察情况日期不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date gzxzkcqkrq;

    /**
     * 下一步工作计划日期
     */
    @NotNull(message = "下一步工作计划日期不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date xybgzjhrq;

    /**
     * 下一步工作计划
     */
    @NotBlank(message = "下一步工作计划不能为空", groups = {AddGroup.class, EditGroup.class})
    private String xybgzjh;

    /**
     * 工作站意见
     */
    private String gzzyj;

    /**
     * 工作站负责人
     */
    private String gzzfzr;

    /**
     * 工作站意见日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date gzzyjrq;

    /**
     * 街道（乡镇）禁毒办
     */
    private String jdjdb;

    /**
     * 街道（乡镇）禁毒办负责人
     */
    private String jdjdbfzr;

    /**
     * 街道（乡镇）禁毒办日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date jdjdbrq;

    /**
     * 备注
     */
    private String remark;


}
